package MOLE.ui;

import MOLE.*;

/** 
 ui ��ժҪ˵����
*/
public class ui extends System.Web.UI.Page
{
	protected System.Web.UI.WebControls.TextBox TextBox1;
	protected System.Web.UI.WebControls.Button btnShow;
	protected System.Web.UI.WebControls.Panel divDate;
	protected System.Web.UI.WebControls.Button btnHide;
	protected System.Web.UI.WebControls.Calendar Calendar1;

	private void Page_Load(Object sender, System.EventArgs e)
	{
		// �ڴ˴������û������Գ�ʼ��ҳ��
		if (!IsPostBack)
		{
			//divDate.Visible=false;
		}
		Thread.currentThread().CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("zh-CN");
		Thread.currentThread().CurrentCulture.DateTimeFormat.DayNames = new String[]{"��", "һ","��","��","��","��","��"};

	}

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region Web ������������ɵĴ���
	@Override
	protected void OnInit(EventArgs e)
	{
		//
		// CODEGEN: �õ����� ASP.NET Web ���������������ġ�
		//
		InitializeComponent();
		super.OnInit(e);
	}

	/** 
	 �����֧������ķ��� - ��Ҫʹ�ô���༭���޸�
	 �˷��������ݡ�
	*/
	private void InitializeComponent()
	{
//C# TO JAVA CONVERTER TODO TASK: Java has no equivalent to C#-style event wireups:
		this.Calendar1.SelectionChanged += new System.EventHandler(this.Calendar1_SelectionChanged);
//C# TO JAVA CONVERTER TODO TASK: Java has no equivalent to C#-style event wireups:
		this.btnShow.Click += new System.EventHandler(this.btnShow_Click);
//C# TO JAVA CONVERTER TODO TASK: Java has no equivalent to C#-style event wireups:
		this.btnHide.Click += new System.EventHandler(this.Button2_Click);
//C# TO JAVA CONVERTER TODO TASK: Java has no equivalent to C#-style event wireups:
		this.Load += new System.EventHandler(this.Page_Load);

	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion

	private void btnShow_Click(Object sender, System.EventArgs e)
	{
	   divDate.Visible = true;
		Calendar1.SelectedDate = java.time.LocalDateTime.now();

	}

	private void Calendar1_SelectionChanged(Object sender, System.EventArgs e)
	{
		TextBox1.Text = Calendar1.SelectedDate.ToShortDateString();
		divDate.Visible = false;

	}

	private void Button2_Click(Object sender, System.EventArgs e)
	{
		divDate.Visible = false;
	}

}